home *** CD-ROM | disk | FTP | other *** search
/ Network Supervisor's Toolkit / Network Supervisor's Toolkit.iso / tools / udtdem / sdk / rqproc / main.c next >
Text File  |  1996-07-10  |  703b  |  52 lines

  1. #include <process.h>
  2.  
  3. #include "main.h"
  4.  
  5.  
  6. /* variables locales
  7.  */
  8. static int iLibraryID;
  9.  
  10. /* Fonctions locales non exportees
  11.  */
  12. void DeinitializeLibrary ( void );
  13. int InitializeLibrary ( void );
  14.  
  15. main ()
  16. {
  17.     /* On sauve le ID de NLM...
  18.      */
  19.     iLibraryID = GetNLMID ();
  20.     /* On teste si l'initialization peut s'effectuer...
  21.      */
  22.     if ( ! InitializeLibrary () )
  23.        {
  24.         exit ( 1 );
  25.        }
  26.     AtUnload ( DeinitializeLibrary );
  27.     ExitThread ( TSR_THREAD, 0 );
  28.  
  29. }
  30.  
  31. void DeinitializeLibrary ( void )
  32. {
  33. }
  34.  
  35.  
  36. int InitializeLibrary ( void )
  37. {
  38.  
  39.     return ( TRUE );
  40.  
  41. }
  42.  
  43.  
  44. int GetLibraryID ( void )
  45. {
  46.  
  47.     return ( iLibraryID );
  48.  
  49. }
  50.  
  51.  
  52.